lunarvim国内安装踩坑记录

您所在的位置:网站首页 lunar client安装不了 lunarvim国内安装踩坑记录

lunarvim国内安装踩坑记录

2024-06-17 08:14| 来源: 网络整理| 查看: 265

只能说…真t的一波三折,本文只是简单记录一下一些坑,完整安装步骤就不赘述了

参考:

github〰 官网〰 他人的博客教程〰=0.5.0 in /home/hex/anaconda3/lib/python3.9/site-packages (from pynvim) (1.0.3) WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv All Python dependencies are successfully installed -------------------------------------------------------------------------------- Would you like to install LunarVim's Rust dependencies: fd::fd-find, rg::ripgrep? [y]es or [n]o (default: no) : y Installing missing Rust dependency with cargo Updating crates.io index Ignored package `fd-find v8.7.0` is already installed, use --force to override warning: be sure to add `/root/.cargo/bin` to your PATH to be able to run the installed binaries All Rust dependencies are successfully installed -------------------------------------------------------------------------------- Backing up old /root/.config/lvim to /root/.config/lvim.old -------------------------------------------------------------------------------- Backing up old /root/.local/share/lunarvim to /root/.local/share/lunarvim.old -------------------------------------------------------------------------------- Backing up old /root/.cache/lvim to /root/.cache/lvim.old -------------------------------------------------------------------------------- Cloning LunarVim configuration 正克隆到 '/root/.local/share/lunarvim/lvim'... remote: Enumerating objects: 17060, done. remote: Counting objects: 100% (178/178), done. remote: Compressing objects: 100% (63/63), done. remote: Total 17060 (delta 101), reused 143 (delta 85), pack-reused 16882 接收对象中: 100% (17060/17060), 13.82 MiB | 5.65 MiB/s, 完成. 处理 delta 中: 100% (10756/10756), 完成. -------------------------------------------------------------------------------- Installing LunarVim shim make: 进入目录“/root/.local/share/lunarvim/lvim” starting LunarVim bin-installer bash ./utils/installer/install_bin.sh You can start LunarVim by running: /root/.local/bin/lvim make: 离开目录“/root/.local/share/lunarvim/lvim” Creating desktop file Preparing Packer setup Initializing first time setup Error detected while processing /root/.local/share/lunarvim/lvim/init.lua: Plugin lunar.nvim is not installedError detected while processing command line: E492: Not an editor command: PackerSync Error detected while processing VimEnter Autocommands for "*": Plugin project.nvim is not installed Plugin lualine.nvim is not installed Plugin alpha-nvim is not installed

我在谷歌搜不到结果,只能说很奇怪…

根据PackerSync,我看了一下packer的库〰,发现我clone过了,于是删除文件夹

搜着搜着发现了一个UP主在B站上发了安装视频和博客〰,于是用他家改写的手动脚本安装,又发生了问题,用自定义脚本安装的过程很长,我等待了20分钟依旧无法安装成功,于是使用了博客〰里的镜像文件替换,但是报错了zsh: command not found: lvim

期间还出现了使用安装脚本权限不够,[ERROR]: Unable to verify plugins, make sure to manually run ':Lazy sync' when starting lvim for the first time.等的问题

解决方式 使用官方脚本

请务必使用官方的脚本安装,地址〰,因为脚本不一定相同,旧的会有问题

保持环境纯净

我是clone了packer,所以删除了,lunarvim会自己安装

代理问题

如果修改了代理,需要重新开一个终端,原来的终端其实是没有生效的

配置环境变量

关于环境变量,参考archwiki〰,有几种方式

第一种,我用的是zsh,所以配置zsh的环境变量(只是举个例子,zsh还有很多种配置的方式)。在~/.zshenv中,输入

typeset -U path path=(~/.local/bin $path)

第二种,配置.bashrc文件

export PATH="$PATH:/home/$USER/.local/bin"

然后记得source一下使他们生效



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3